package puzzle.common.solver;

import puzzle.common.data.AbstractBoard;
import puzzle.common.data.HatanException;

public class TopologicalRuleAdaptor<B extends AbstractBoard<B>, P extends AbstractTopology>
		implements TopologicalRule<B, P> {

	private final BoardRule<B> m_rule;

	public TopologicalRuleAdaptor(BoardRule<B> rule) {
		m_rule = rule;
	}

	public final boolean apply(B b, P topology) throws HatanException {
		return m_rule.apply(b);
	}

}
